package net.lanelife.casino.cms.web.controller;

import net.lanelife.casino.caipiao.dto.admin.BalanceChangeReasonCreateDTO;
import net.lanelife.casino.caipiao.dto.admin.BalanceChangeReasonDTO;
import net.lanelife.casino.caipiao.dto.admin.BalanceChangeReasonTable;
import net.lanelife.casino.caipiao.dto.admin.BalanceChangeReasonUpdateDTO;
import net.lanelife.casino.caipiao.entity.BalanceChangeReason;
import net.lanelife.casino.caipiao.service.api.IBalanceChangeReasonService;
import net.lanelife.casino.cms.web.controller.support.CRUDController;
import net.lanelife.casino.common.service.support.IGenericService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = BalanceChangeReasonController.PATH)
public class BalanceChangeReasonController extends CRUDController<BalanceChangeReason, Integer, BalanceChangeReasonDTO, BalanceChangeReasonCreateDTO, BalanceChangeReasonUpdateDTO, BalanceChangeReasonTable<BalanceChangeReasonDTO>> {
	
	public static final String PATH = "/balance-change-reason";
	
	public BalanceChangeReasonController() {
		super(PATH);
	}

	@Autowired
	private IBalanceChangeReasonService balanceChangeReasonService;
	
	@Override
	protected IGenericService<BalanceChangeReason, Integer> getService() {
		return balanceChangeReasonService;
	}

}
